package com.zsrt.java.day20161229.wrl.homework;

public class UserEntity02 {
	
	/**
	 * 构造器
	 */
	public UserEntity02() {
	}
	
	public static void main(String[] args) {
		UserEntity02 user = new UserEntity02();
		/*user.setName("张三");
		user.setUsername("zhangsan");
		user.setPassword("1234");
		user.setGirlfriend(false);
		user.setSeconds(3600*24*365*22);
		user.setAge(18);
		user.setMoney(50000.0);
		user.setSex('男');*/
		System.out.println("name(String):"+user.getName()+"\nUsername(String)："+user.getUsername()+
				"\npassword(String)："+user.getPassword()+"\nage(int):"+user.getAge()+"\nsex(char)："+
				user.getSex()+"\nmoney(double)："+user.getMoney()+"\nseconds(long)："+user.getSeconds());
	}
	
	private String name;
	private String username;
	private String password;
	private boolean girlfriend;
	
	/**
	 * (多少秒)
	 */
	private long 	seconds;
	
	private int 	age;
	private double  money;
	private char    sex;
	private byte    xx;
	private short   yy;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public boolean isGirlfriend() {
		return girlfriend;
	}
	public void setGirlfriend(boolean girlfriend) {
		this.girlfriend = girlfriend;
	}
	public long getSeconds() {
		return seconds;
	}
	public void setSeconds(long seconds) {
		this.seconds = seconds;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}

	public byte getXx() {
		return xx;
	}

	public void setXx(byte xx) {
		this.xx = xx;
	}

	public short getYy() {
		return yy;
	}

	public void setYy(short yy) {
		this.yy = yy;
	}
}
